PESetGroupSelectionFormula

Use PESetGroupSelectionFormula to change the group selection formula to the formula string you supply as a parameter. This function can be used by itself to replace an existing group selection formula and also as one of a series of functions (PEGetGroupSelectionFormula; PEGetHandleString; and PESetGroupSelectionFormula). The series can be used in a Custom-Print Link to identify and then change an existing group selection formula at print time in response to a user selection. When you give the user the ability to change the group selection formula at print time, your link must include code to replace formulaString with a user-generated value.

C Syntax
BOOL CRPE_API PESetGroupSelectionFormula (
        short printJob,
        const char FAR *formulaString );
Parameters

printJob

Specifies the print job for which you want to set a new group selection formula.

formulaString

Specifies a pointer to the null-terminated string you want to assign to the group selection formula.

Returns
Remarks
VB Syntax

VB Sample Code for modifying selection formulas and group selection formulas

Declare Function PESetGroupSelectionFormula Lib "crpe32.dll" (ByVal printJob As Integer, ByVal formulaString As String) As Integer

Delphi Syntax
function PESetGroupSelectionFormula (
    printJob: Word;
    formulaString: PChar
    ): Bool stdcall;
dBASE for Windows Syntax

EXTERN CLOGICAL PESetGroupSelectionFormula (CWORD, CSTRING) CRPE.DLL



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com